/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.ajz.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.ajz.entity.AjzCompanyInfo;
import com.jeesite.modules.ajz.dao.AjzCompanyInfoDao;

/**
 * 企业安全生产Service
 * @author cww
 * @version 2018-12-28
 */
@Service
@Transactional(readOnly=true)
public class AjzCompanyInfoService extends CrudService<AjzCompanyInfoDao, AjzCompanyInfo> {
	
	/**
	 * 获取单条数据
	 * @param ajzCompanyInfo
	 * @return
	 */
	@Override
	public AjzCompanyInfo get(AjzCompanyInfo ajzCompanyInfo) {
		return super.get(ajzCompanyInfo);
	}
	
	/**
	 * 查询分页数据
	 * @param ajzCompanyInfo 查询条件
	 * @param ajzCompanyInfo.page 分页对象
	 * @return
	 */
	@Override
	public Page<AjzCompanyInfo> findPage(AjzCompanyInfo ajzCompanyInfo) {
		return super.findPage(ajzCompanyInfo);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param ajzCompanyInfo
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(AjzCompanyInfo ajzCompanyInfo) {
		super.save(ajzCompanyInfo);
	}
	
	/**
	 * 更新状态
	 * @param ajzCompanyInfo
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(AjzCompanyInfo ajzCompanyInfo) {
		super.updateStatus(ajzCompanyInfo);
	}
	
	/**
	 * 删除数据
	 * @param ajzCompanyInfo
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(AjzCompanyInfo ajzCompanyInfo) {
		super.delete(ajzCompanyInfo);
	}
	
}